﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/AdminTemplate.Master" AutoEventWireup="true" CodeBehind="RenewAdvertisement.aspx.cs" Inherits="RealtorsPortal.AdminCP.RenewAdvertisement" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>Restore Your Advertisements.
        </h1>
    <fieldset>
        ______________________________________________________________________________________________
        <legend>PayPal Information</legend>
        <div class="input_field">
            <asp:GridView ID="grvPayPal" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True" PageSize="5" OnRowCommand="grvPayPal_RowCommand" DataKeyNames="PackageId">
                <HeaderStyle CssClass="header_gridview" />
                <Columns>
                    <asp:TemplateField HeaderText="Package Name">
                        <ItemTemplate>
                            <%#Eval("PackageName")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Price">
                        <ItemTemplate>
                            <%#Eval("Price")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Number Of Advertises">
                        <ItemTemplate>
                            <%#Eval("NumOfAds")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Number Of Images">
                        <ItemTemplate>
                            <%#Eval("NumOfImg")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Duration">
                        <ItemTemplate>
                            <%#Eval("Duration")%>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="ReNew">
                        <ItemTemplate>
                            <asp:LinkButton ID="lbtnPayPal" runat="server" CommandName="PayPalComponent"
                                ValidationGroup="PayPal" CausesValidation="true" CommandArgument='<%# DataBinder.Eval(Container, "RowIndex") %>'>
                                <asp:Image ID="ibtnPayPal" Width="60" Height="20" runat="server" ImageUrl="assets/buy.jpg" />
                            </asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
        </div>
        <div class="input_field" id="divFirstName" runat="server">
            <label>
                First Name:
            </label>
            <asp:TextBox ID="txtFirtName" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv1" runat="server" ControlToValidate="txtFirtName"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divLastName" runat="server">
            <label>
                Last Name:
            </label>
            <asp:TextBox ID="txtLastName" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv2" runat="server" ControlToValidate="txtLastName"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divCardNumber" runat="server">
            <label>
                Card Number:
            </label>
            <asp:TextBox ID="txtCardNumber" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv3" runat="server" ControlToValidate="txtCardNumber"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divEmail" runat="server">
            <label>
                Email:
            </label>
            <asp:TextBox ID="txtEmail" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv4" runat="server" ControlToValidate="txtEmail"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divAddress" runat="server">
            <label>
                Address:
            </label>
            <asp:TextBox ID="txtAddress" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv5" runat="server" ControlToValidate="txtAddress"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divPhone" runat="server">
            <label>
                Phone Number:
            </label>
            <asp:TextBox ID="txtPhone" runat="server" Width="215px">
            </asp:TextBox><asp:RequiredFieldValidator ID="rfv6" runat="server" ControlToValidate="txtPhone"
                    CssClass="validate_error"
                    ToolTip="Title"
                    ForeColor="" />
        </div>
        <div class="input_field" id="divImage" runat="server">
            <table>
                <tr>
                    <td align="right">
                     <asp:Image ID="Image1" Width="150" Height="70" runat="server" ImageUrl="~/AdminCP/assets/payPal.jpg" />   
                    </td>
                    
                </tr>
            </table>
        </div>
        <div class="input_field no_margin_bottom" id="divButton" runat="server">
            <label>
                &nbsp;</label>
            <asp:Button ID="btnSubmit" runat="server" Text="SUBMIT" CssClass="submit" OnClick="btnSubmit_Click"/>
            <input class="submit" type="reset" value="RESET" />
        </div>
    </fieldset>
</asp:Content>
